package cn.gson.crm.model.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import cn.gson.crm.model.entity.Answer;
import cn.gson.crm.model.entity.WorkJinDu;
import cn.gson.crm.model.entity.WorkJournal;
/**
 * 作业进度表mapper
 * @author Jkelove
 *
 */
@Mapper
public interface WorkJinMapper {
	
	/**
	 * 通过学生查询进度
	 * @param id
	 * @return
	 */
	List<WorkJinDu> selectAllwork(Long id);
	
	/**
	 * 通过作业id查询习题
	 * @param workid
	 * @return
	 */
	List<Long> selectAllexce(Long workid);
	
	/**
	 * 通过答案返回答案id
	 * @param as
	 * @return
	 */
	Long selectanswerid(Answer as);
	
	/**
	 * 通过作业进度id查询工作进度
	 * @param wjd
	 * @return
	 */
	Long selectWorkjd(WorkJinDu wjd);
	
	/**
	 * 查询学生提交作业日志
	 * @return
	 */
	List<WorkJournal> selectworkjl();
	


}
